home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: MegaDisc
/
MegaDisc 43 (1995-03)(MegaDisc Digital Publishing)(AU)(Disk 2 of 2)[m bamcopy].zip
/
MegaDisc 43 (1995-03)(MegaDisc Digital Publishing)(AU)(Disk 2 of 2)[m bamcopy].adf
/
Programming
/
Guide_To_AMOS_6
/
structure.ASC
< prev
next >
Wrap
Text File
|
1994-12-21
|
974b
|
41 lines
'
'A guide to AMOS 6 - Procedures and a bit more
'
'program written for the "Guide To AMOS" series by Bruce Laing
'
'(C) 1994, Bruce Laing for Megadisc
'
Screen Open 0,640,256,2,Hires : Paper 0 : Cls : Curs Off : Hide On : Palette ,$FFF
Input "Please enter a number ";NU : Curs Off : Print
_MULTIPLY[NU]
'the above will multiply the number by 5 and store the results in param
TN=Param
Print "The number";NU;" Multiplied by 5 equals";TN
Print : Print "Press any key" : Wait Key
Cls
_POPPIT
Print : Print "Press any key" : Wait Key
Cls
Every 20 Proc _DOIT
Print : Print : Print "Press control c to exit the loop"
Do : Loop
Procedure _MULTIPLY[NU]
NU=NU*5
End Proc[NU]
Procedure _POPPIT
Cls
Print "This will exit after a short while"
X=1
_LOP:
Print X; : X=X+1
If X=500
Print : Print "I'm outta here" : Pop Proc
End If
Goto _LOP
End Proc
Procedure _DOIT
Shared X
X=X+1 : Home : Print "the value of X =";X
Every On
End Proc